package CGW.dao;

import CGW.bean.Dinner_table;

import java.util.List;

public class Dinner_tableDao extends BaseDao<Dinner_table>{
    public List<Dinner_table> all(int page, int pageSize){
        return all(Dinner_table.class, page, pageSize);
    }

    public int total(){
        return count_rows(Dinner_table.class);
    }

    public Dinner_table get(int table_id){
        return get(Dinner_table.class, "table_id", table_id);
    }

    public int add(Dinner_table table_id){
        return add(table_id, "table_id");
    }

    public int update(Dinner_table table_id){
        return update(table_id, "table_id");
    }

    public int delete(int table_id){
        return delete(Dinner_table.class, "table_id", table_id);
    }
}
